package campus.util;

import javax.annotation.Resource;

import campus.dao.ManagerDao;
import campus.service.ManagerService;
import campus.service.serviceImpl.ManagerServiceImpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.Map;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class testMapper {

    @Resource
    private  ManagerServiceImpl managerService;



    @Test
    public void testName() throws Exception {

        Map<String, Object> user=managerService.loginManager("admin","admin");
        System.out.println(user);



    }



}